<?php
/**
 * A helper class for formatting floats into correctly rounded prices
 * .i.e two decimal places
 */
class Zend_View_Helper_MyCheckbox
{
    function myCheckbox($name, $value, $check = null, $label = null, $id = null )
    {
		$str = ''; // Initialise a string
		if(isset($label))
		{
			$str .= $label . ' ';
		}
        $str .= "<input id=\"$id\" name=\"$name\" type=\"checkbox\" value=\"$value\" ";
		if(isset($check) && is_array($check))
		{
			$str .= (in_array($value, $check)) ? 'checked="true"' : '';
		}

		$str .= '/>';
		return $str;
    }
}
